<?php
/**
 * Created by PhpStorm.
 * User: hang
 * Date: 2021/12/15
 * Time: 09:37
 */
function getLoginStatus(){
//判断是否已登入，true:登入；false:未登入
    session_start();
    $Token = $_COOKIE['Token'];
    if (empty($Token)){
        return false;
    }
    if (empty($_SESSION[$Token])){
        return false;
    }
    return true;
}